package ar.com.gestion.rowmapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import ar.com.gestion.dominio.Pago;

public class PagosRowMapper implements RowMapper<Pago>{

	@Override
	public Pago mapRow(ResultSet row, int index) throws SQLException {
		
		Pago pago = new Pago();
		pago.setId(row.getInt("id"));
		pago.setFecha(row.getTimestamp("fecha"));
		pago.setMonto(row.getFloat("monto"));
		
		
		return pago;
	}
	
	
	
}
